package com.xwt.pattern.abstractFactory;

/**
 * Author:  Steven Xiao
 * Description:男性创建工厂
 * Date:  2016/3/11
 * Time:  14:49
 */
public class MaleHumanFactory extends AbstractHumanFactory {
    //创建一个男性黑种人
    @Override
    public Human createYellowHuman() {
        return super.createHuman(HumanEnum.YellowMaleHuman);
    }

    //创建一个男性白种人
    @Override
    public Human createWhiteHuman() {
        return super.createHuman(HumanEnum.WhiteMaleHuman);
    }

    //创建一个男性黄种人
    @Override
    public Human createBlackHuman() {
        return super.createHuman(HumanEnum.BlackMaleHuman);
    }
}
